package cn.kgc.bookservice.service;

import cn.kgc.librarycommon.pojo.BookInfo;
import cn.kgc.librarycommon.pojo.BorrowVO;
import cn.kgc.librarycommon.pojo.Category;
import cn.kgc.librarycommon.pojo.PageResult;

import java.util.List;

public interface BookService {
    PageResult<BookInfo> getAllBooks(Integer pageNo, Integer pageSize, String bookName, String authorName, Integer cid);
    List<Category> getAllCategory();
    Integer borrow(Integer uid, Integer fid);
    List<BorrowVO> getBorrowById(Integer uid);
}
